import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:wu_you/res/colors.dart';
import 'package:wu_you/utils/utils.dart';

class IndustryCheck extends StatefulWidget{
  final bool value;
  final onTap;
  IndustryCheck({Key key,this.value,this.onTap}):super(key: key);
  @override
  IndustryCheckState createState() => IndustryCheckState();
}
class IndustryCheckState extends State<IndustryCheck>{
  @override
  Widget build(BuildContext context) {
    return InkWell(
      child: Container(
        width: 19,
        height: 19,
        child: Center(
          child: Image.asset(
            widget.value ? Utils.getImgPath('ic_pay_tick'): Utils.getImgPath('ic_pay_circle'),
          ),
        ),
      ),
      onTap: () {
        widget.onTap(!widget.value);
      },
    );
  }
}